﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace whereIsTheDonutGame
{
    public class Tree
    {
        public donutGame game;
        public Model Model { get; set; }
        public Vector3 Position { get; set; }

        public BoundingBox boundingBox { get; set; }

        public Tree(donutGame game)
        {
            this.game = game;
            Model = null;
            boundingBox = new BoundingBox();
        }
        public void LoadContent(ContentManager content)
        {
            Model = content.Load<Model>("baum");
            Position = Vector3.Down;
        }



        public void UpdateBoundingBox()
        {
         boundingBox = new BoundingBox(new Vector3(Position.X - 1 , Position.Y - 1, Position.Z - 1),new Vector3(Position.X + 1, Position.Y + 1, Position.Z + 1));
       }

    }
}